[mlir-vscode] Added LIT test discovery functionality #111070
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Work in progress)
This is a draft of adding LIT test discovery in the VSCode MLIR extension.

The implemented functionality adds a list of LIT tests in the Testing Tab in VSCode which looks like this:
Things I want to implement:
.vscode/settings.json)lit.py [...] -vflag).vscode/settings.json--split-input-fileoption and enabling triggering a single chunk (test case) within the LIT test instead of running the whole file; implementation of this feature depends on whether each chunk has some sort of unique ID within mlir-opt and the triggered chunks could be called by it (similiar to how--gtest_filterworks in gtest, e.g. imagine something like--mlir-opt_filter test.mlir*_42gets implemented which would just chunk no. 42 from test.mlir).